<template>
  <div>
    <van-tabs v-model:active="active" sticky swipeable>
      <van-tab title="商品">
        <CollectionList :key="0" :type="1"/>
      </van-tab>
      <van-tab title="文章">
        <CollectionList :key="1" :type="2"/>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script setup>
import { ref } from 'vue';
let active=ref(0)
</script>

<style scoped lang="less">
</style>